package com.sheledon.demo.demo3.controller;

import com.sheledon.demo.demo3.service.BossService;
import com.sheledon.demo.demo3.service.EmployeeService;
import com.sheledon.flyCat.annotation.ioc.Autowired;
import com.sheledon.flyCat.annotation.ioc.Qualifier;
import com.sheledon.flyCat.annotation.springmvc.GetMapping;
import com.sheledon.flyCat.annotation.springmvc.RestController;

@RestController("/employee")
public class EmployeeController {

    @Autowired
    private BossService bossService;
    @Autowired
    @Qualifier(name = "es")
    private EmployeeService employeeService;

    @GetMapping("/moyu")
    public void moyuzhong(){
        employeeService.moyu();
        bossService.check();
    }
}
